﻿using TrackSystem.Entities.Extensions;

namespace TrackSystem.Entities.Attr
{
    /// <summary>
    /// 传感器属性变量定义
    /// </summary>
    public static class SensorAttrDefine
    {
        /// <summary>
        /// 属性变量初始化
        /// </summary>
        public static List<ParamsBase> attrs = new List<ParamsBase>
        {
            new (0, "Enable", "传感器启用状态", false, DataTypeEnum.BOOLEAN),
            new (1, "Succ_R", "读成功次数", true, DataTypeEnum.INTEGER),
            new (2, "Fail_R", "读失败次数", true, DataTypeEnum.INTEGER),
            new (3, "Succ_W", "写成功次数", true, DataTypeEnum.INTEGER),
            new (4, "Fail_W", "写失败次数", true, DataTypeEnum.INTEGER),
            new (5, "Lapse",  "通信时延", true, DataTypeEnum.INTEGER),
            new (6, "QueueLen", "队列长度", true, DataTypeEnum.INTEGER),
            new (7, "Txr", "读发送通信帧", true, DataTypeEnum.STRING),
            new (8, "Rxr", "读接收通信帧", true, DataTypeEnum.STRING),
            new (9, "Txw", "写发送通信帧", true, DataTypeEnum.STRING),
            new (10, "Rxw", "写接收通信帧", true, DataTypeEnum.STRING),
        };
    }
}
